import Nerv from "nervjs";
import Taro from "@tarojs/taro-h5";
import { View, Text } from '@tarojs/components';
import useBasePage from '../basePage/useBasePage';
import { observer } from "@tarojs/mobx-h5";

class Login extends Taro.Component {
  render() {
    const { params } = Taro.useRouter();
    const { onload, awtRs } = useBasePage();
    const [pageTitle, setPageTitle] = Taro.useState('登录账户');
    Taro.useEffect(() => {
      onload(async () => {
        // 这里写初始化逻辑
        console.log('参数：', params);
      }, pageTitle);
    }, []);
    return <View className="page">
      <Text>这里是{pageTitle}</Text>
    </View>;
  }

  componentDidMount() {
    super.componentDidMount && super.componentDidMount();
  }

  componentDidShow() {
    super.componentDidShow && super.componentDidShow();
  }

  componentDidHide() {
    super.componentDidHide && super.componentDidHide();
  }

}

export default observer(Login);